# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Contributor: Sergey Lukin <sergej.lukin@gmail.com>
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwnck3
pkgver=43.1
pkgrel=0
pkgdesc="Window Navigator Construction Kit"
url="https://gitlab.gnome.org/GNOME/libwnck"
arch="all"
license="LGPL-2.0-or-later"
subpackages="$pkgname-dev $pkgname-lang"
replaces="libwnck"
makedepends="
	cairo-dev
	glib-dev
	gobject-introspection-dev
	gtk+3.0-dev
	libx11-dev
	libxres-dev
	meson
	pango-dev
	startup-notification-dev
	"
options="!check" # no tests
source="https://download.gnome.org/sources/libwnck/${pkgver%.*}/libwnck-$pkgver.tar.xz"
builddir="$srcdir/libwnck-$pkgver"

build() {
	abuild-meson \
		-Db_lto=true \
		-Dgtk_doc=false \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
e6c715834841307a1aea55396f584dcbf5670a357b40dbf1b1492721bbb6078396e7e193c503c57c77a5acb8ec1beeccd2fa6dce1e6c7ec7c6a9517001ba101f  libwnck-43.1.tar.xz
"
